﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ProTrack.Dto
{
    public class WhPoInboundItemDto
    {
        /// <summary>
        /// 入库记录ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 外部系统ID
        /// </summary>
        public string ExternalId { get; set; }

        /// <summary>
        /// 入库编号，唯一
        /// 格式：XR-年份-月份-日期-序号
        /// </summary>
        public string Number { get; set; }

        /// <summary>
        /// 采购订单ID，关联已审核的采购订单
        /// </summary>
        public long? OrderPoId { get; set; }

        /// <summary>
        /// 供应商ID
        /// </summary>
        public string VendorId { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string VendorName { get; set; }

        /// <summary>
        /// 供应商联系人
        /// </summary>
        public string VendorContact { get; set; }

        /// <summary>
        /// 供应商联系电话
        /// </summary>
        public string VendorContactTel { get; set; }

        /// <summary>
        /// 付款方式
        /// </summary>
        public string PaymentCategory { get; set; }

        /// <summary>
        /// 付款账户
        /// </summary>
        public string PaymentAccount { get; set; }

        /// <summary>
        /// 入货仓ID，不允许为空
        /// </summary>
        public long WarehouseId { get; set; }

        /// <summary>
        /// 入货仓名称，不允许为空
        /// </summary>
        public string WarehouseName { get; set; }


        /// <summary>
        /// 入库日期
        /// </summary>
        public DateTime? DeliveryDate { get; set; }

        /// <summary>
        /// 状态：0待入库，1已入库
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间，默认当前时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 修改者
        /// </summary>
        public string Updater { get; set; }

        /// <summary>
        /// 修改时间，默认当前时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 是否删除，默认为false
        /// </summary>
        public bool Deleted { get; set; }



        /// <summary>
        /// 采购入库ID
        /// </summary>
        public long WhPoInboundId { get; set; }

        /// <summary>
        /// 商品编号，不允许为空
        /// </summary>
        public long ItemId { get; set; }

        /// <summary>
        /// 当前库存
        /// </summary>
        public float CurrCount { get; set; }


        /// <summary>
        /// 商品编码
        /// </summary>
        public string ItemCode { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 数量，不允许为空
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 商品单价，采购价，不允许为空
        /// </summary>
        public float Price { get; set; }

        /// <summary>
        /// 采购价
        /// </summary>
        public float PurchasePrice { get; set; }

        /// <summary>
        /// 金额，不允许为空
        /// </summary>
        public float Amount { get; set; }

        /// <summary>
        /// 入库数量
        /// </summary>
        public float? Quantity { get; set; }


        public string Spec { get; set; }
        public string UnitOfMeasure { get; set; }







    }
}
